package cn.heima.com;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.Period;
import java.time.format.DateTimeFormatter;

public class DateDemo6 {
    public static void main(String[] args) {
        String birthday = "1997-10-03";
        DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd");
        LocalDate birth = LocalDate.parse(birthday, dtf);
        LocalDateTime now = LocalDateTime.now();


    }
}
